﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FRL.DebtChased.Website;

namespace WebApplication.Finance.Controls
{

	/// <summary>
	/// Declaration of ClientHeadingBarCtrl class
	/// </summary>
	public partial class ClientHeadingBarCtrl : System.Web.UI.UserControl
	{

		/////////////////////////////////////////////////////////////
		// Constants

		/////////////////////////////////////////////////////////////
		// Attributes

		public string BarTitle
		{
			set
			{
				lbPageTitle.Text = value;
			}
		}

		/////////////////////////////////////////////////////////////
		// Event handlers

		protected void Page_Load(object sender, EventArgs e)
		{

			// If this is a postback...
			if (this.IsPostBack)
			{

			}
			else
			{

				// Set bar colours
				pnlBar.BackColor = MyApplication.BindMyApplication().PrimaryWebColor;

			}

		}

		protected void hypDetails_Click(object sender, EventArgs e)
		{

			// Redirect
			Response.Redirect("~/Finance/ClientDetails.aspx");

		}

		protected void hypAutoAssignment_Click(object sender, EventArgs e)
		{

			// Redirect
			Response.Redirect("~/Finance/ClientCollectorAssignment.aspx");

		}

		protected void hypWorkflowAssignment_Click(object sender, EventArgs e)
		{

			// Redirect
			Response.Redirect("~/Finance/ClientWorkflowAssignment.aspx");

		}

		protected void hypInvoicing_Click(object sender, EventArgs e)
		{

			// Redirect
			Response.Redirect("~/Finance/ClientInvoicingConfig.aspx");

		}

		protected void hypManagement_Click(object sender, EventArgs e)
		{

			// Redirect
			Response.Redirect("~/Finance/ClientManagement.aspx");

		}

		protected void hypDocuments_Click(object sender, EventArgs e)
		{

			// Redirect
			Response.Redirect("~/Finance/ClientDocuments.aspx");

		}

		protected void hypBankAccounts_Click(object sender, EventArgs e)
		{

			// Redirect
			Response.Redirect("~/Finance/ClientBankAccounts.aspx");

		}

	}

}